package org.yunshang.color.domain.bo;

import org.yunshang.color.domain.TColor;
import org.yunshang.common.core.validate.AddGroup;
import org.yunshang.common.core.validate.EditGroup;
import org.yunshang.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 颜色管理业务对象 t_color
 *
 * @author Lion Li
 * @date 2024-03-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TColor.class, reverseConvertGenerate = false)
public class TColorBo extends BaseEntity {


    private Long id;

    /**
     * 颜色
     */
    @NotBlank(message = "颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 状态（0=启用，1=禁用）
     */
    private String status;


}
